package com.bruce.demo1.principles.demo4.isp.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 使用接口隔离，满足不同防盗门不同功能的需求
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/22 22:46
 */
public class Test {
    public static void main(String[] args) {
        HeiMaSafetyDoor safetyDoor = new HeiMaSafetyDoor();
        safetyDoor.antiTheft();
        safetyDoor.fireProof();
        safetyDoor.waterProof();

        System.out.println("==========================");
        BruceLeeSafetyDoor bruceLeeSafetyDoor = new BruceLeeSafetyDoor();
        bruceLeeSafetyDoor.antiTheft();
        bruceLeeSafetyDoor.fireProof();
    }
}
